package com.ruoyi.yljf.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BasePlusEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 支付记录对象 yljf_pay_record
 * 
 * @author metaee
 * @date 2025-03-20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "yljf_pay_record")
public class PayRecord{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** ali/wx */
    @Excel(name = "ali/wx")
    private String payWay;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal amount;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 订单描述 */
    @Excel(name = "订单描述")
    private String payDescribe;

    /** 订单状态（0-待支付，1-完成，2-取消） */
    @Excel(name = "订单状态", readConverterExp = "0=-待支付，1-完成，2-取消")
    private Integer statu;

}
